﻿package com.jxl.dnd.managers
{
	public class jxl.dnd.managers.AttackManager
	{
		public static function rollDice(howMany:Number, whatType:Number):Number
		{
			var result = 0;
			while(howMany--)
			{
				result += Math.floor( (Math.random() * whatType) + 1);
			}
			return result;
		}
		
		public static function attackMelee(aggressor:Character, target_array:Array):Void
		{
			//var i = target_array.length;
			//while(
			//var attackRoll = rollDice(1, 20);
			//var attackBonus = aggressor.attackBonus.meleeAttackBonus();
			//var totalRoll = attackRoll + attackBonus;
			
		}
	}
}